package cn.webrx;

import java.util.Calendar;
import java.util.Date;
import java.util.Locale;

public class FormatOut2 {
    public static void main(String[] args) {
        //10 010 0a 0A 12
        System.out.printf("%d %<03d %<02x %<02X %<o %2$.2f%n%n",10,60f);

        //%tx  千年虫？ （bug） 1997 95 1997 97  1900 2000 00
        System.out.printf("%tA %1$tp %1$tF %1$tT%n",0l);

        System.out.printf("%tA %1$tp %1$tF %1$tT%n",new Date());
        System.out.printf("%tA %1$tp %1$tF %1$tT%n", Calendar.getInstance());
        System.out.printf("%tA %1$tp %1$tF %1$tT%n",System.currentTimeMillis() - (1000*60*60*24*7));

        System.out.printf("%tF %n%1$tY年%1$tm月%1$td日 %1$tA",System.currentTimeMillis());
    }
}
